using System;
using System.Collections.Generic;
using System.Text;
using Xyne.Network;
using Microsoft.Xna.Framework.Net;

namespace Xyne.Events
{
    /// <summary>
    /// Someone wants to quit.
    /// </summary>
    public class GameQuitEvent : Event
    {
        // The player that quit the game
        private String gamerTag;

        public String Gamer
        {
            get { return gamerTag; }
            set { gamerTag = value; }
        }

        public GameQuitEvent(Object source, String player) : base(source)
        {
            DataType = NetworkDataType.GameQuit;
            this.gamerTag = player;
        }

        public override void Serialize(PacketWriter writer)
        {
        }
    }
}
